package com.example.volleysample;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

/**
 * Created by Administrator on 2017/8/30.
 */

public class MyApplication extends Application {
    private static RequestQueue mQueue;
    public static RequestQueue getRequestQueue(){
        return mQueue;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        mQueue = Volley.newRequestQueue(this);
    }
}
